package cn.edu.sgu.www.mhxysy.mapper.children_equipment;

import cn.edu.sgu.www.mhxysy.entity.children_equipment.ChildrenEquipment;
import cn.edu.sgu.www.mhxysy.vo.children_equipment.ChildrenEquipmentVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Repository
public interface ChildrenEquipmentMapper extends BaseMapper<ChildrenEquipment> {

    /**
     * 查询宠物已穿戴的宠物装备
     * @param childrenId 子女ID
     * @return List<ChildrenEquipmentVO>
     */
    List<ChildrenEquipmentVO> getWeardEquipments(@Param("childrenId") String childrenId);

    /**
     * 查询子女装备列表
     * @param type 子女装备类型
     * @param childrenId 子女ID
     * @return List<ChildrenEquipment>
     */
    List<ChildrenEquipment> select(@Param("type") Integer type, @Param("childrenId") String childrenId);
}